body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: #f4f4f9;
  background-image: url("../images/blog_bg.png"); /* 确保路径正确 */
  background-size: cover; /* 背景图覆盖整个页面 */
  background-position: center; /* 居中对齐背景图 */
  background-attachment: fixed; /* 背景图固定，页面滚动时不会移动 */
}
/* 文章条目分隔符样式 */
.article-separator {
  border: 1px solid blue; /* 灰色边框 */
  margin: 10px 0; /* 上下边距 */
}

/* 评论条目分隔符样式 */
.comment-separator {
  border-top: 1px solid green; /* 评论条目顶部边框 */
  margin: 10px 0; /* 上下边距 */
}

/* 可选：调整评论和文章的间距 */
.comment, .article-preview {
  margin-bottom: 15px; /* 每个评论和文章项底部间距 */
}

.container {
  max-width: 800px;
  width: 100%;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9); /* 半透明背景让内容更易读 */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}
.article-body {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.container, #article-page, .publish-section, #search-results {
  border: 1px solid black; /* 调试用的临时边框 */
}
header {
  position: relative;
  padding: 20px;
  text-align: center;
}
@font-face {
  font-family: 'MyCustomFont'; /* 自定义字体名称 */
  src: url('../font/VonwaonBitmap-16px.ttf') format('truetype'); /* 字体文件路径 */
  font-weight: normal; /* 设置正常的字体粗细 */
  font-style: normal;  /* 设置正常的字体样式 */
}
.header-title {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* 确保标准 background-clip 正常生效 */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 10px; 
  font-family: 'MyCustomFont';
}



.publish-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.publish-btn:hover {
  background-color: #0056b3;
}


.search-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

#search-input {
  width: 70%;
  padding: 10px;
  font-size: 1rem;
}

button {
  padding: 10px 20px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #45a049;
}

#search-results {
  margin-top: 20px;
}

.publish-section {
  text-align: center;
  margin-top: 20px;
}

.publish-section h2 {
  margin-bottom: 10px;
}

#article-title,
#article-content {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#article-page {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
}

.hidden {
  display: none;
}
